Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recursion error #310

Merged
merged 3 commits into from
Jul 24, 2024
Merged

recursion error #310

merged 3 commits into from
Jul 24, 2024

Conversation

bboynton97
Copy link
Contributor

📥 Pull Request

📘 Description
When attempting to record an error event associated with another event, we are currently unintentionally recording the parent event again until max recursion depth is reached,

Changes one line to record the associated event, not record the error.

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Flag Coverage Δ
unittests 45.10% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
agentops/session.py 71.94% <0.00%> (ø)

@bboynton97
Copy link
Contributor Author

image tested on crew with intentional errors

@bboynton97 bboynton97 requested a review from siyangqiu July 24, 2024 22:40
Copy link
Contributor

@siyangqiu siyangqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever workaround!

@bboynton97 bboynton97 merged commit 013a113 into main Jul 24, 2024
9 of 11 checks passed
@bboynton97 bboynton97 deleted the recursion-fix branch July 24, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants